package com.ssm.tsj.controller;

        import com.ssm.common.pojo.TMentalityResult;
        import com.ssm.common.pojo.TMentalityTest;
        import com.ssm.tsj.service.PhysicalAssessmentService;
        import com.ssm.tsj.service.PsychologicalAssessmentService;
        import com.ssm.tsj.vo.MemberMedicVo;
        import com.ssm.tsj.vo.TMemberVo;
        import org.springframework.web.bind.annotation.*;

        import javax.annotation.Resource;
        import java.util.List;

@RestController
@CrossOrigin
public class PsychologicalAssessmentController {

        @Resource
        private PsychologicalAssessmentService psychologicalAssessmentService;


        @ResponseBody
        @RequestMapping("/resquery.action")
        public List<TMemberVo> resquery(String name) throws Exception {

                return this.psychologicalAssessmentService.resquery(name);
        }
        @ResponseBody
        @RequestMapping("/mentality_testQuery.action")
        public List<TMentalityTest> mentality_testQuery() throws Exception {

                return this.psychologicalAssessmentService.mentality_testQuery();
        }

        @ResponseBody
        @RequestMapping("/saveMentality_test.action")
        public void saveMentality_test(@RequestBody TMentalityResult vo) throws Exception {


                this.psychologicalAssessmentService.saveMentality_test(vo);
        }



}
